package com.sangmo.fts.clazz.model;

import com.sangmo.boot.framework.data.entity.general.AuditEntity;
import com.sangmo.fts.user.model.User;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

@Entity
@Table(name = "clazz")
public class Clazz extends AuditEntity {

    private String exClazzId;

    private String code;

    @NotBlank
    private String name;

    @NotBlank
    private String state = User.States.ENABLED;

    private String type;

    private String description;

    public String getExClazzId() {
        return exClazzId;
    }

    public void setExClazzId(String exClazzId) {
        this.exClazzId = exClazzId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
